package com.wenguodong.demofirstt;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

/*
 *@Time：2023/4/19
 *@Author：Jelly
 */

@Data
@AllArgsConstructor
@Validated
public class UserT {
    @NotNull
    private String name;

    @Min(0)
    @Max(120)
    private int age;

}
